home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$MetaAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.7 KB  |  36 lines

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.text.MutableAttributeSet;
  4. import javax.swing.text.html.HTML.Attribute;
  5. import javax.swing.text.html.HTMLDocument.HTMLReader;
  6.  
  7. class HTMLDocument$HTMLReader$MetaAction extends HTMLDocument.HTMLReader.HiddenAction {
  8.    // $FF: synthetic field
  9.    private final HTMLDocument.HTMLReader this$1;
  10.  
  11.    HTMLDocument$HTMLReader$MetaAction(HTMLDocument.HTMLReader var1) {
  12.       super(var1);
  13.       this.this$1 = var1;
  14.    }
  15.  
  16.    boolean isEmpty(HTML.Tag var1) {
  17.       return true;
  18.    }
  19.  
  20.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  21.       Object var3 = var2.getAttribute(Attribute.HTTPEQUIV);
  22.       if (var3 != null) {
  23.          String var5 = ((String)var3).toLowerCase();
  24.          if (var5.equals("content-style-type")) {
  25.             String var4 = (String)var2.getAttribute(Attribute.CONTENT);
  26.             HTMLReader.access$0(this.this$1).setDefaultStyleSheetType(var4);
  27.             this.this$1.isStyleCSS = "text/css".equals(HTMLReader.access$0(this.this$1).getDefaultStyleSheetType());
  28.          } else if (var5.equals("default-style")) {
  29.             this.this$1.defaultStyle = (String)var2.getAttribute(Attribute.CONTENT);
  30.          }
  31.       }
  32.  
  33.       super.start(var1, var2);
  34.    }
  35. }
  36.